<template>
  <view class="skill-card">
    <view class="d-title">脱单小技巧</view>
    <view class="d-item">
      <image :src="curImgUrl+'/date1.svg'" mode="scaleToFill" class="d-img" />
      <view>
        <view class="d-top">完善更多资料</view>
        <view class="d-text">孩子脱单成功率可提升<text class="d-red">5-10倍</text></view>
      </view>
    </view>
    <view class="d-item">
      <image :src="curImgUrl+'/date2.svg'" mode="scaleToFill" class="d-img" />
      <view>
        <view class="d-top">填写择偶标准</view>
        <view class="d-text">系统推荐精准可提升<text class="d-red">5-10倍</text></view>
      </view>
    </view>
    <view class="d-btn" @click="toComplete"><custom-btn>帮孩子快速脱单</custom-btn></view>
    <view class="d-tips">完美繁花祝您早日帮孩子脱单</view>
  </view>
</template>

<script setup>
import { urlConf } from "@/config/resource";
const curImgUrl = urlConf + "common";
import useStore from "@/store";
const { common, app } = useStore();

const toComplete = () =>{
  common.updatePopupOpen(false, 'skill');
  setTimeout(() => {
    uni.navigateTo({ url: '/subPages/complete/index' })
  }, 100);
}
</script>

<style lang=scss scoped>
.skill-card {
  background: linear-gradient(180deg, #ffd8d6 0%, #ffffff 37%);
  border-radius: 30rpx;
  padding: 40rpx;
  .d-title {
    font-weight: 800;
    font-size: 44rpx;
    color: #000;
    text-align: center;
    padding: 20rpx 0 60rpx;
  }
  .d-item {
    display: flex;
    align-items: center;
    padding-bottom: 60rpx;
  }
  .d-img {
    width: 100rpx;
    height: 100rpx;
    margin-right: 20rpx;
  }
  .d-top {
    font-weight: bold;
    font-size: 36rpx;
    color: #333;
  }
  .d-text {
    font-weight: 500;
    font-size: 28rpx;
    color: #999;
    padding-top: 10rpx;
    .d-red {
      color: #ff5c55;
    }
  }

  .d-btn {
    width: 530rpx;
    height: 120rpx;
    line-height: 120rpx;
    background: linear-gradient(180deg, rgba(241, 55, 64, 0.9) 0%, #f13740 100%);
    box-shadow: 0rpx 20rpx 40rpx 0rpx rgba(241, 55, 64, 0.25);
    border-radius: 120rpx;
    margin: 0 auto;
    font-weight: bold;
    font-size: 40rpx;
    color: #fff;
  }

  .d-tips {
    padding-top: 20rpx;
    font-weight: 500;
    font-size: 28rpx;
    color: #999;
    text-align: center;
    letter-spacing: 4rpx;
  }
}
</style>